import Vue from 'vue';
import App from './App.vue';
import router from './router';
import 'es6-promise/auto';
import axios from 'axios';

Vue.config.productionTip = false;
Vue.prototype.$http = axios;

import "./assets/rem.js";

// 引入 Toast Dialog
import { Toast, Dialog } from 'feui';
window.Toast = Toast;
window.Dialog = Dialog;

// 全局userAgent
window.ua = navigator.userAgent.toLowerCase();

// 全局server
import './server';

new Vue({
  el: '#app',
  router,
  render: h => h(App)
});
